package com.itheima.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 项目审核过程对象 project_review_progress
 *
 * @author guanhuaer
 * @date 2025-03-18
 */
@Data
public class ProjectReviewProgress
        {
private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 项目id */
    @ApiModelProperty("项目id")
    private Long projectId;

    /** 审核人 */
    @ApiModelProperty("审核人")
    private String reviewer;

    /** 角色 */
    @ApiModelProperty("角色")
    private String role;

    /** 审核意见 */
    @ApiModelProperty("审核意见")
    private String reviewComments;

    /** 审核结果(0通过，1不通过，2驳回) */
    @ApiModelProperty("审核结果(0通过，1不通过，2驳回)")
    private Integer auditResult;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("审核时间")
    private LocalDateTime auditTime;

            public LocalDateTime getAuditTime() {
                return LocalDateTime.now();
            }

            public void setAuditTime(LocalDateTime auditTime) {
                this.auditTime = auditTime;
            }
        }
